package com.shawn.spring.boot.yaml;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author shawn
 * @since 2020/7/17
 */
@Component
@Data
@ConfigurationProperties(prefix = "config")
public class DataSourceConfig {

  private String host;
  private Integer port;
  private String url;
  private String username;
  private String password;
  private String driverClassName;
  private DataSourceType type;

}
